Skip to content

Instantly share code, notes, and snippets.

@tdcosta100
tdcosta100 / WSL2GUIWSLg-XWayland-en.md
Last active February 4, 2026 20:26
A tutorial to use GUI in WSL2/WSLg replacing original Xorg by Xwayland, allowing WSL to work like native Linux, including login screen

Full desktop shell in WSL2 using WSLg (XWayland)

Note

If you want to use Wayland in WSLg in a simpler setup, you can try the WSLg (Wayland) tutorial.

In this tutorial, we will setup GUI in WSL2. No additional software outside WSL (like VcXsrv or GWSL) is required. You will find this tutorial very similar to the one that replaces Xorg with Xvnc. Indeed, it's pretty much the same tutorial, with some few changes.

The key component we need to install is the desktop metapackage you want (GNOME, KDE, Xfce, Budgie, etc), and after that, replace the default Xorg by a script that calls Xwayland instead.

For this setup, I will use Ubuntu 24.04, and install GNOME Desktop. Unfortunately older versions of Ubuntu lack some fundamental things, so we cannot reproduce it in older versions (at least not fully). Since the key components aren't bound to Ubuntu or GNOME, you can use your favorite distro and GUI. Check the [Sample screenshot

@dimovdaniel
dimovdaniel / version
Last active February 4, 2026 20:11
supersaas version
{
"version":"1.0.0"
}
@emschwartz
emschwartz / README.md
Last active February 4, 2026 20:11
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

@Hermitao
Hermitao / game.rs
Last active February 4, 2026 20:11
Bevy flight model - prototype
use avian3d::parry::na::clamp;
use avian3d::prelude::*;
use bevy::prelude::*;
use bevy::text::FontSmoothing;
use bevy::window::PresentMode;
use bevy::dev_tools::fps_overlay::{
FpsOverlayConfig,
FpsOverlayPlugin,
FrameTimeGraphConfig
};
@mikaeldui
mikaeldui / CachyOS Kernel for Fedora with Secure Boot.md
Last active February 4, 2026 20:10
CachyOS Kernel for Fedora with Secure Boot

image

CachyOS Kernel for Fedora with Secure Boot

Did you just install kernel-cachyos and got hit by bad shim signature when booting? Me too. This is how I fixed it.

First, make sure you have Secure Boot with mokutil --sb-state.

Note, there's a second way of doing this by using sbctl, but I didn't want to wipe my Secure Boot keys.

Need help? Feel free to leave a comment below, contact me (@mikaeldui) on the CachyOS Discord, or send me an email.

HyperGryph Monster Siren Records website API

Common

export interface Response {
	code: number;
	msg: string;
	data: Data;
}
@ginahorscroft
ginahorscroft / keybase.md
Created September 9, 2020 15:39
blue keybase identity

Keybase proof

I hereby claim:

  • I am ginahorscroft on github.
  • I am blue_gina (https://keybase.io/blue_gina) on keybase.
  • I have a public key ASA7Ry8M1B0NXNd5mFJSek1qzKznW6hrwADIEJl35pR4gwo

To claim this, I am signing this object:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Proxy Intercept Fetch Example</title>
</head>
<body>
<h1>Proxy Intercept Fetch Example</h1>
<button id="make-fetch">Make Fetch Call</button>
@peppy
peppy / zendesk-google-apps.js
Last active February 4, 2026 19:54
zendesk spam filter
/*
* This will let you action on all zendesk emails.
* Unfortunately this isn't as they arrive, but on a time based schedule.
* It will help with organisation but not stop realtime notifications from arriving.
*
* - Create a new app/script on https://script.google.com.
* - Setup a time based trigger (1 hour works well for me)
* - Run the following function: https://gist.github.com/peppy/696d6a9df7036a11fce21252101684df.
* - IMPORTANT: it currently adds a label which you can then use to filter and manually action on emails.
* If you prefer, you can archive or trash automatically (see commented lines at the end of the code),
@20chan
20chan / readme.md
Last active February 4, 2026 19:53
유니티 직렬화 방식과 null 사용의 개같음과 버그

유니티에서 Object 클래스는 (System.Object가 아님) == 오퍼레이터와 implicit bool 캐스팅 오퍼레이터를 오버라이드한다. 이게 진자 말도 안된다

2018.3.0f2 버젼이고 코드는 Jetbrain Rider 로 디컴파일한 코드를 사용

정의된 코드는 다음과 같다:

public static bool operator ==(Object x, Object y)
{
  return Object.CompareBaseObjects(x, y);